package com.lml;

import com.ynny.lml.usermanager.controller.UserController;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestClass {

    @Test
    public void testUserController() {
        try (ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("applicationContext.xml")) {
            UserController userController = context.getBean("userController", UserController.class);
            String info = userController.toUser();
            System.out.println(info);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
